﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace LunarSF.SHomeWorkshop.LunarMarkdownEditor.Utils
{
    class _WinApis
    {
        /// <summary>
        /// From:<https://stackoverflow.com/questions/10727182/convert-8-3-filename-to-long-filename>
        /// </summary>
        /// <param name="path"></param>
        /// <param name="longPath"></param>
        /// <param name="longPathLength"></param>
        /// <returns></returns>
        [DllImport("kernel32.dll", CharSet = CharSet.Auto)]
        public static extern int GetLongPathName(
        string path,
        StringBuilder longPath,
        int longPathLength
        );
    }
}
